<template>
  <div class="banner">
    <van-swipe :autoplay="3000" :height="200">
      <van-swipe-item v-for="(item, index) in bannerImgArr" :key="index">
        <img :src="item.image_url" width="100%" />
      </van-swipe-item>
    </van-swipe>
  </div>
</template>
 
<script>
export default {
  // props: ['bannerImgArr'],
  props: {
    bannerImgArr: {
      type: Array,
    },
  },
  data() {
    return {};
  },
  updated() {
    console.log(this.bannerImgArr);
  },
};
</script>
 
<style lang = "less" scoped>
</style>